package org.webgene;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")
public class EngineMain {
	
	@RequestMapping("/{name}")
	public String hello(@PathVariable String name, Model model){
		model.addAttribute("name", name);
		return "/WEB-INF/views/hello.jsp";
	}
}

	